package day04;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入指令");
        int command = scanner.nextInt();
        switch (command) {
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("查看余额");
                break;
            case 4:
                System.out.println("退出");
                break;
        }
    }
}
